<!-- contacts 页面内容 -->
<section class="contacts" ng-controller="contactsCtrl">
  <div class="row margin-reset">
    <table class="table table-bordered yf-shadow">
        <thead>
            <th class="col-lg-3 col-md-3 col-sm-3 col-xs-3 padding-reset">序号</th>
            <th class="col-lg-3 col-md-3 col-sm-3 col-xs-3 padding-reset">姓名</th>
            <th class="col-lg-3 col-md-3 col-sm-3 col-xs-3 padding-reset">邮箱</th>
            <th class="col-lg-3 col-md-3 col-sm-3 col-xs-3 padding-reset">手机号</th>
        </thead>
        <tbody ng-show='users && users.length > 0'>
          <tr ng-repeat="user in users track by $index">
              <td class="col-lg-3 col-md-3 col-sm-3 col-xs-3 padding-reset">
                  {{ $index + 1 }}
              </td>
              <td class="col-lg-3 col-md-3 col-sm-3 col-xs-3 padding-reset">
                  {{ user.real_name }}
              </td>
              <td class="col-lg-3 col-md-3 col-sm-3 col-xs-3 padding-reset">
                  {{ user.email }}
              </td>
              <td class="col-lg-3 col-md-3 col-sm-3 col-xs-3 padding-reset">
                  {{ user.tel }}
              </td>
          </tr>
        </tbody>
    </table>
    <nav ng-show='users && users.length != 0 && page.total_count > limit'>
        <ul class="pager pager-sm yf-pager">
            <li>
                <a class="btn btn-default" ng-disabled="!((page.current_page - 1) >= 1)" ng-click="manage(page.current_page - 1);">上一页</a>
            </li>
            <li>
                <a class="btn btn-default" ng-disabled="!page.next_page" ng-click="manage(page.next_page);">下一页</a>
            </li>
        </ul>
    </nav>
  </div>
</section>
